import babel from "@rollup/plugin-babel";
import commonjs from "@rollup/plugin-commonjs";
import json from "@rollup/plugin-json";
import nodeResolve from "@rollup/plugin-node-resolve";
export default {
    input: "./index.ts",
    output: [
        {
            file: `./dist/index.js`,
            format: "es",
        },
    ],
    plugins: [
        json(),
        nodeResolve(),
        babel({
            presets: ["@babel/typescript"],
            extensions: [".ts"],
            exclude: ["node_modules"],
            plugins: [
                // ["@babel/plugin-proposal-decorators", { legacy: true }],
                // ["@babel/plugin-proposal-class-properties", { loose: true }],
            ],
        }),
        commonjs({
            extensions: [".js", ".ts"],
        }),
    ],
};
